<?php
namespace Home\Model;
use Think\Model\RelationModel;
class ArticlelModel extends RelationModel
{
	protected $_link = array(
		'Tag' => array(
			'mapping_type' => self::MANY_TO_MANY, 
			'class_name' => 'tag', 
			'foreign_key' => 'id', 
			'relation_foreign_key' => 'id', 
			'relation_table' => 'article_tag'
		)
	);
}
